import {
    QUERY_HOT_Q,
    QUERY_HOT_A,
    QUERY_HOT_Q_TOP,
    QUERY_HOT_A_TOP,
    QUERY_USER_ASSIST_COUNT
} from '@/config/url';
import request from '@/utils/request';

// 获取热问
export const queryHotA = (data) => {
    return request(QUERY_HOT_A);
};
// 获取热答
export const queryHotQ = (data) => {
    return request(QUERY_HOT_Q);
};
// 获取热问区问题
export const queryHotATop = (data) => {
    return request(QUERY_HOT_A_TOP, {data});
};
// 获取热答区答案
export const queryHotQTop = (data) => {
    return request(QUERY_HOT_Q_TOP, {data});
};
// 个人帮助人次以及获得答金总量
export const queryAssistCount = id => {
    let url = QUERY_USER_ASSIST_COUNT.replace(/\{userId\}/, id);
    return request(url);
};

